- Description:
This key represents an individual add option object in the
collections_config.*.add_optionsarray.The value is an object that defines an option available in the + Add button dropdown at the top right of the Collection browser. Each add option can be a standard entry or a URL entry, each with their own properties.
- Appears in:
└── collections_config └── * └── add_options └── [*]- Types:
This key represents the standard add option entry in a
collections_config.*.add_optionsarray.The value is an object that defines an option available in the + Add button dropdown at the top right of the Collection browser. Standard add options can contain optional
name,icon,editor,base_path,collection,schema, anddefault_content_filekeys.Show examplesHide examples
In this example, we have configured a standard add option for the
peopleCollection that uses theemployeeSchema and opens files in the Data Editor.Copied to clipboardcollections_config: people: add_options: - name: Add Staff Member schema: employee icon: face editor: data schemas: employee: path: /.cloudcannon/schemas/employee.yml{ "collections_config": { "people": { "add_options": [ { "name": "Add Staff Member", "schema": "employee", "icon": "face", "editor": "data" } ], "schemas": { "employee": { "path": "/.cloudcannon/schemas/employee.yml" } } } } }This key represents the URL add option object in a
collections_config.*.add_optionsarray.The value is an object that defines an option available in the + Add button dropdown at the top right of the Collection browser. URL add options must contain a required
hrefkey and can contain optionalnameandiconkeys.Show examplesHide examples
In this example, the + Add button dropdown in the
teamCollection browser has a link to the Office Locations page on our live website.Copied to clipboardcollections_config: team: add_options: - name: Office Locations icon: map href: /our-offices{ "collections_config": { "team": { "add_options": [ { "name": "Office Locations", "icon": "map", "href": "/our-offices" } ] } } }- Examples:
In this example, we have configured a standard add option for the
peopleCollection that uses theemployeeSchema and opens files in the Data Editor.Copied to clipboardcollections_config: people: add_options: - name: Add Staff Member schema: employee icon: face editor: data schemas: employee: path: /.cloudcannon/schemas/employee.yml{ "collections_config": { "people": { "add_options": [ { "name": "Add Staff Member", "schema": "employee", "icon": "face", "editor": "data" } ], "schemas": { "employee": { "path": "/.cloudcannon/schemas/employee.yml" } } } } }In this example, the + Add button dropdown in the
teamCollection browser has a link to the Office Locations page on our live website.Copied to clipboardcollections_config: team: add_options: - name: Office Locations icon: map href: /our-offices{ "collections_config": { "team": { "add_options": [ { "name": "Office Locations", "icon": "map", "href": "/our-offices" } ] } } }